import org.rsbot.script.methods.GrandExchange;
import org.rsbot.script.methods.GrandExchange.GEItem;

class FOGRunner$FOGItem
{
  public String name;
  public int ID;
  public int tokens;
  public int price = 0;
  public boolean members;

  public FOGRunner$FOGItem(FOGRunner paramFOGRunner, String paramString, int paramInt1, int paramInt2, boolean paramBoolean)
  {
    this.name = paramString;
    this.ID = paramInt1;
    this.tokens = paramInt2;
    this.price = 0;
    this.members = paramBoolean;
  }

  public FOGRunner$FOGItem(FOGRunner paramFOGRunner, String paramString, int paramInt1, int paramInt2, int paramInt3, boolean paramBoolean)
  {
    this.name = paramString;
    this.ID = paramInt1;
    this.tokens = paramInt2;
    this.price = paramInt3;
    this.members = paramBoolean;
  }

  public boolean hasGotPrice()
  {
    return this.price != 0;
  }

  public boolean setPrice()
  {
    int i = 0;
    try {
      i = FOGRunner.access$000(this.this$0).lookup(this.ID).getGuidePrice();
      if (i > 0) {
        this.price = i;
        return true;
      }
    } catch (NullPointerException localNullPointerException) {
    }
    this.price = 0;
    return false;
  }

  public int getRatio()
  {
    if ((this.price > 0) && (this.tokens > 0)) {
      return (int)Math.round(this.price / this.tokens);
    }

    return 0;
  }
}